package com.jsonal.vo;

import java.io.Serializable;
import java.util.List;
import lombok.Data;

/**
 * @Author: jingji.lin
 * @Description: response返回
 * @Date: 2020/4/12 13:49
 * @Version: 1.0
 */
@Data
@SuppressWarnings(value = "unused")
public class Result implements Serializable {
    public static final int SUCCESS = 1;
    public static final int FAILURE = -1;

    private static final long serialVersionUID = 8645773925030183008L;

    private boolean success = false;

    private String msg = "";

    private Object obj = null;

    private List<?> results;

    public Result() {
    }

    public Result(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

}
